// 引入 createRouter
import {  createRouter, createWebHashHistory } from "vue-router";
// 引入路由配置
import routes from './routes'

// 函数构造器生成router实例
const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router